package com.cz.video.website.domain.bo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cz.video.common.core.validate.AddGroup;
import com.cz.video.website.domain.WebsiteVideo;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * <p>
 * 电影视频表
 * </p>
 *
 * @author 洪圆胜
 * @since 2023-10-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("website_video")
@Schema(description="电影视频表")
public class WebsiteVideoBo extends WebsiteVideo{

    @Schema(description = "文件名")
    @NotBlank(message = "没有选择要上传的文件",groups = AddGroup.class)
    private String fileName;

    @Schema(description = "标签列表")
    private List<Long> tagIds;

    @Schema(description = "标签id，查询用")
    private Long tagId;
}
